"Animated Text Hover"
Bootstrap 3.0.0 Snippet by ALIMUL AL RAZY

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="style.css">
<title>Text Effects</title>
</head>
<body>
<span class="text">Bangladesh</span>
</body>
</html>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
body{
margin: 0;
padding: 0;
font-family: sans;
}
.text{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
font-size: 120px;
font-weight: 700;
letter-spacing: 0.2em;
text-transform: uppercase;
color: gray;
}
.text:before{
content: 'Bangladesh';
color: black;
position: absolute;
width: 0;
overflow: hidden;
transition: 0.9s;
}
.text:hover:before{
width: 100%;
cursor:pointer;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: